_package("alz.mui");

_import("alz.mui.LinkLabel");

/**
 * 调试面板中的Tab组件
 */
_class("Tab", LinkLabel, function(){
	this._init = function(){
		_super._init.call(this);
		this._page = null;
	};
	this.bind = function(obj, page){
		this.init(obj);
		this._page = page;
		this._page.style.display = "none";
	};
	this.dispose = function(){
		this._page = null;
		_super.dispose.apply(this);
	};
	this.activate = function(){
		this._self.style.backgroundColor = "#333333";
		this._page.style.display = "";
	};
	this.deactivate = function(){
		this._self.style.backgroundColor = "";
		this._page.style.display = "none";
	};
});